home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWString / Include / SLStrRun.idl < prev    next >
Encoding:
Text File  |  1996-04-25  |  1.6 KB  |  75 lines  |  [TEXT/MPS ]

  1. //==============================================================================
  2. //
  3. //    File:        SLStrRun.idl
  4. //
  5. //    Contains:    Interface for OTextRunReader and OTextRunWriter classes
  6. //
  7. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  8. //
  9. //==============================================================================
  10.  
  11. #ifndef SLSTRRUN_IDL
  12. #define SLSTRRUN_IDL
  13.  
  14. #ifndef SLTXTRUN_IDL
  15. #include "SLTxtRun.idl"
  16. #endif
  17.  
  18. //========================================================================================
  19. // Interfaces defined in this unit
  20. //========================================================================================
  21.  
  22. interface   FW_OStringRunWriter;
  23.  
  24. //========================================================================================
  25. // FW_OTextRunWriter
  26. //========================================================================================
  27.  
  28. typedef somToken FW_SPrivStringRep;
  29.  
  30. interface FW_OStringRunWriter : FW_OTextRunWriter
  31. {
  32.     FW_OStringRunWriter Initialize(in FW_SPrivStringRep* theString, in short bufferSize);
  33.  
  34. #ifdef __SOMIDL__
  35.     implementation
  36.     {
  37.         functionprefix = "FW_OStringRunWriter__";
  38.  
  39.         override:
  40.             somInit,
  41.             somUninit,
  42.             GetCurrentRun,
  43.             FlushRun,
  44.             NewRun;
  45.  
  46.         releaseorder:
  47.             somInit,
  48.             somUninit,
  49.             GetCurrentRun,
  50.             FlushRun,
  51.             NewRun,
  52.             Initialize;
  53.  
  54.         majorversion = 1;
  55.         minorversion = 0;
  56.  
  57.         passthru C_xh =
  58.             "struct FW_SPrivStringRep;";
  59.  
  60.         passthru C_xih =
  61.             "";
  62.  
  63. #ifdef __PRIVATE__    
  64.         // private data members here
  65.         FW_SPrivStringRep*    fString;
  66.         short                fBufferSize;
  67.         char*                fBuffer;
  68. #endif
  69.  
  70.     };
  71. #endif
  72. };
  73.  
  74. #endif
  75.